<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<title><{$title}></title>
<meta http-equiv="Content-Type" content="text/html; charset=<{$language[charset]}>">
<link rel="stylesheet" type="text/css" media="all" href="<{$swiftpath}>staff/index.php?_ca=css" />
<script language="Javascript">
var themepath = "<{$themepath}>";
var swiftpath = "<{$swiftpath}>";
var appenurl = "<{$appendurl}>";
var BLANK_IMAGE="<{$themepath}>space.gif";
var swiftsessionid = "<{$session[sessionid]}>";
var swiftiswinapp = "<{$session[iswinapp]}>";
var cparea = "<{$area}>";
</script>
<script type="text/javascript" src="<{$themepath}>main.js"></script>
<{if $area eq "staff"}>
<script type="text/javascript" src="<{$localepath}>staffmenu.js"></script>
<{/if}>
<{if $calendar eq true}>
<{if $lschathistory == true || $isteamwork == true}>
<link rel="stylesheet" type="text/css" media="all" href="<{$themepath}>calendar-flatnav.css" title="win2k-1" />
<{else}>
<link rel="stylesheet" type="text/css" media="all" href="<{$themepath}>calendar-blue.css" title="winter" />
<{/if}>
<script type="text/javascript" src="<{$themepath}>calendar.js"></script>
<script type="text/javascript" src="<{$themepath}>lang/calendar-<{$languagecode}>.js"></script>
<script type="text/javascript" src="<{$themepath}>calendar-setup.js"></script>
<{/if}>
<{if $overlib eq true}>
<script type="text/javascript" src="<{$swiftpath}>includes/overLIB/overlib.js"></script>
<script type="text/javascript" src="<{$swiftpath}>includes/overLIB/overlib_exclusive.js"></script>
<{/if}>
<{if $spellcheck eq true}>
<script type="text/javascript" src="<{$swiftpath}>includes/Spellcheck/spellChecker.js"></script>
<{/if}>
<{if $jscachefile neq ""}>
<script type="text/javascript" src="<{$swiftpath}>files/<{$jscachefile}>"></script>
<{/if}>
<script type="text/javascript">
<{if $htmlarea eq true}>
var _editor_lang = "en";
var _editor_url = "<{$swiftpath}>includes/htmlArea/";
var editor = null;
<{if $htmlareanotable neq true}>var loadTablePlugin = false;<{else}>var loadTablePlugin = true;<{/if}>
<{/if}>
</script>
<{if $htmlarea eq true}>
<script type="text/javascript" src="<{$swiftpath}>includes/htmlArea/htmlarea.js"></script>
<{/if}>
<{processCPMenu area=$area}>
<script language="Javascript">
//HTMLArea.loadPlugin("TableOperations");
function loadAllData() { preloadMenuImages(); <{if $htmlarea eq true}>
editor = new HTMLArea("contents");
//  editor.registerPlugin(TableOperations);
  editor.generate();
<{/if}><{if $prvmsgshow eq true}>	var x = confirm("<{$language[newprvmsgconfirm]}>");	if (x) {window.open('index.php?_m=core&_a=privatemessages&popupshow=1');}<{/if}>
	<{if $refreshtime != 0}>setTimeout("refreshPage();",<{$refreshtime}>000);<{/if}>
		var irsField = browserObject("staffirs");
		if (irsField)
		{
			window.$IRS = globalirs = new IRSAutoComplete(document.getElementById('staffirs'));
		}
	}
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="<{$themepath}>bgblocks.gif" onLoad="javascript:loadAllData();">
<{if $area eq "staff"}>
<script language="Javascript">
var swticketdepartments = swmenulist = new Array();
<{if $cpdepcount != 0}>
swticketdepartments = [<{foreach key=key value=item from=$cpdepartments}><{if $item[departmentmodule] == "tickets"}>['<{$item[title]}>', '<{$item[departmentid]}>', '<{if $item[index] == 1}>1<{else}>0<{/if}>']<{if $item[index] != $cpdepcount}>, <{/if}><{/if}><{/foreach}>];
<{/if}>
swmenulist = [<{foreach key=key value=item from=$dropdownlist}>['<{$item[0]}>', '<{$item[1]}>'],<{/foreach}>];
buildMainMenus();
<{if $enticketview > 0}>
var MENU_TICKETVIEWS =
[
	{"popup":1, "popupoff":[0,0], "pos":[0,0], "zindex":50, "size":[22,180], "itemoff":[21,0], "leveloff":[10,59], "delay":1000, "style":VSTYLE, "imgsize":[20,17], dynamic: true, https_fix_blank_doc:themepath+'blank.html'},
	<{foreach key=key value=item from=$ticketviews}>
	{code:"<{$item[title]}>", "format":{"leveloff":[5,179], "image":themepath+"menu_ticketview.gif", "oimage":themepath+"menu_ticketview.gif", "imgsize":[20,22]<{if $cticketviewid == $item[ticketviewid] && $item[index] == 0}>, "style":VSTYLESELBORDER<{elseif $cticketviewid == $item[ticketviewid] && $item[index] != 0}>, "style":VSTYLESEL<{elseif $item[index] == 0}>, "style":VSTYLEBORDER<{else}>, "style":VSTYLE<{/if}>}, url:"index.php?_m=tickets&_a=manage&ticketviewid=<{$item[ticketviewid]}>&departmentid=<{$tdepartmentid}>&ticketstatusid=<{$tticketstatusid}>&ticketsearchid=<{$tticketsearchid}>&ticketlabelid=<{$tticketlabelid}>"},
	<{/foreach}>
	{code:"<{$language[viewoptions]}>", "format":{"leveloff":[5,179], "image":themepath+"menu_ticketviewoptions.gif", "oimage":themepath+"menu_ticketviewoptions.gif", "imgsize":[20,22],"arrow":themepath+"icon_rightarrowgray.gif", "oarrow":themepath+"icon_rightarrowgray.gif", "arrsize":[10,10]}, url:"javascript:void(0);",
		sub:[
			{"leveloff":[0,179]},
			{code:"<{$language[editview]}>", url:"index.php?_m=tickets&_a=editticketview&ticketviewid=<{$cticketviewid}>&departmentid=<{$tdepartmentid}>&ticketstatusid=<{$tticketstatusid}>&ticketsearchid=<{$tticketsearchid}>&ticketlabelid=<{$tticketlabelid}>", "format":{"itemoff":[0,0],"size":[23,180],"image":themepath+"menu_ticketviewoptions.gif", "oimage":themepath+"menu_ticketviewoptions.gif", "style":VSTYLEBORDER}}<{if $ticketview[ismaster] != 1}>,
			{code:"<{$language[deleteview]}>", url:"index.php?_m=tickets&_a=delticketview&ticketviewid=<{$cticketviewid}>&departmentid=<{$tdepartmentid}>&ticketstatusid=<{$tticketstatusid}>&ticketsearchid=<{$tticketsearchid}>&ticketlabelid=<{$tticketlabelid}>", "format":{"itemoff": [22,0],"image":themepath+"menu_delticketview.gif", "oimage":themepath+"menu_delticketview.gif", "style":VSTYLE}}<{/if}>
			,{code:"<{$language[rssfeed]}>", url:"<{$swiftpath}>rss/index.php?_m=tickets&_a=rss&ticketviewid=<{$cticketviewid}>&departmentid=<{$tdepartmentid}>&ticketstatusid=<{$tticketstatusid}>", "target": "_blank", "format":{"size":[23,180], "imgsize":[20,30],"image":themepath+"menu_rss.gif", "oimage":themepath+"menu_rss.gif", "style":VSTYLE}}
		]
	},
	{code:"<{$language[newview]}>", "format":{"leveloff":[5,179], "image":themepath+"menu_newticketview.gif", "oimage":themepath+"menu_newticketview.gif", "imgsize":[20,22]}, url:"index.php?_m=tickets&_a=newticketview&departmentid=<{$tdepartmentid}>&ticketstatusid=<{$tticketstatusid}>&ticketsearchid=<{$tticketsearchid}>&ticketlabelid=<{$tticketlabelid}>"}
];
var tviewmenu = new COOLjsMenuPRO("tviewmenu", MENU_TICKETVIEWS);
var tviewmenuloaded = true;
tviewmenu.initTop();
tviewmenu.init();

buildTicketViewMenus('<{$language[newlabel]}>', '<{$language[deletelabel]}>', '<{$tdepartmentid}>', '<{$tticketstatusid}>', '<{$ticketlabelid}>');

<{/if}>

<{if $isviewticket == true}>

var MENU_SLALINK =
[
	{"popup":1, "popupoff":[0,0], "pos":[0,0], "zindex":50, "size":[22,180], "itemoff":[20,0], "leveloff":[10,59], "delay":1500, "style":VSTYLE, dynamic: true, https_fix_blank_doc:themepath+'blank.html'},
	{code:"<{$language[ticket]}>", "format":{"size":[22,120], "style":VSTYLEBORDER, "itemoff":[0,0], "image":themepath+"menu_ticket.gif", "oimage":themepath+"menu_ticket.gif", "imgsize":[20,22], "arrow":themepath+"icon_rightarrowgray.gif", "oarrow":themepath+"icon_rightarrowgray.gif", "arrsize":[10,10]}, url:"javascript:void(0);"<{if $slaplancount > 0}>,
		sub:[
			{"leveloff":[0,119]},
			<{foreach key=key value=item from=$slaplans}>
			{code:"<{$item[title]}>", url:"index.php?_m=tickets&_a=ticketactions&ticketid=<{$ticketid}>&action=linksla&slatype=ticket&slaplanid=<{$item[slaplanid]}>", "format":{"itemoff":[21,0],"size":[23,180],"image":themepath+"menu_sla.gif", "oimage":themepath+"menu_sla.gif"<{if $ticketslaplanid == $item[slaplanid] && $item[index] == 1}>, "style":VSTYLESELBORDER<{elseif $ticketslaplanid == $item[slaplanid] && $item[index] != 1}>, "style":VSTYLESEL<{elseif $item[index] == 1}>, "style":VSTYLEBORDER<{else}>, "style":VSTYLE<{/if}>}}<{if $item[index] != $slaplancount}>,<{/if}>
			<{/foreach}>
		]<{/if}>
	},
	{code:"<{$language[user]}>", "format":{"size":[22,120], "image":themepath+"menu_user.gif", "oimage":themepath+"menu_user.gif", "imgsize":[20,22], "arrow":themepath+"icon_rightarrowgray.gif", "oarrow":themepath+"icon_rightarrowgray.gif", "arrsize":[10,10]}, url:"javascript:void(0);"<{if $slaplancount > 0}>,
		sub:[
			{"leveloff":[0,119]},
			<{foreach key=key value=item from=$slaplans}>
			{code:"<{$item[title]}>", url:"index.php?_m=tickets&_a=ticketactions&ticketid=<{$ticketid}>&action=linksla&slatype=user&slaplanid=<{$item[slaplanid]}>", "format":{"itemoff":[21,0],"size":[23,180],"image":themepath+"menu_sla.gif", "oimage":themepath+"menu_sla.gif"<{if $userslaplanid == $item[slaplanid] && $item[index] == 1}>, "style":VSTYLESELBORDER<{elseif $userslaplanid == $item[slaplanid] && $item[index] != 1}>, "style":VSTYLESEL<{elseif $item[index] == 1}>, "style":VSTYLEBORDER<{else}>, "style":VSTYLE<{/if}>}}<{if $item[index] != $slaplancount}>,<{/if}>
			<{/foreach}>
		]<{/if}>}
]
var tslalink = new COOLjsMenuPRO("tslalink", MENU_SLALINK);
tslalink.initTop();
tslalink.init();

var swticketmenuphrases = {purpleflag:'<{$language[purpleflag]}>',redflag:'<{$language[redflag]}>',orangeflag:'<{$language[orangeflag]}>',yellowflag:'<{$language[yellowflag]}>',blueflag:'<{$language[blueflag]}>',greenflag:'<{$language[greenflag]}>',clearflag:'<{$language[clearflag]}>',exportpdf:'<{$language[exportpdf]}>',exportxml:'<{$language[exportxml]}>',printticket:'<{$language[printticket]}>',mergeticket:'<{$language[mergeticket]}>',ban:'<{$language[ban]}>',bandelete:'<{$language[bandelete]}>',dodelete:'<{$language[delete]}>',markasdue:'<{$language[markasdue]}>',markduetf:'<{$language[markduetf]}>'};

buildViewTicketMenus(swticketmenuphrases,'<{$ticketid}>');
<{elseif $isedituser == true || $isstaffdashboard == true}>
var MENU_CREATEUSERTICKET =
[
	{"popup":1, "popupoff":[0,0], "pos":[0,0], "zindex":50, "size":[22,180], "itemoff":[21,0], "leveloff":[10,59], "delay":1000, "style":VSTYLE, "imgsize":[20,17], dynamic: true, https_fix_blank_doc:themepath+'blank.html'},
	{code:"Send E-mail", "format":{"style":VSTYLEBORDER,"itemoff":[0,0], "leveloff":[5,179], "arrow":themepath+"icon_rightarrowblue.gif", "oarrow":themepath+"icon_rightarrowblue.gif", "arrsize":[10,10], "image":themepath+"menu_ticketnormal.gif", "oimage":themepath+"menu_ticketnormal.gif", "imgsize":[20,22]}, url:"javascript:void(0);"<{if $cpdepcount >= 0}>,
					sub: [
						{"itemoff":[21,0]},
						<{foreach key=key value=item from=$cpdepartments}>
						<{if $item[departmentmodule] == "tickets"}>
						{code:"<{$item[title]}>", "format":{"image":themepath+"menu_folderblue.gif", "oimage":themepath+"menu_folderblue.gif", "style":<{if $item[index] == 1}>SUBPOPUPTOP<{else}>SUBPOPUP<{/if}>, "imgsize":[20,22]}, url:"index.php?_m=tickets&_a=newticket&type=generic&departmentid=<{$item[departmentid]}>&userid=<{$userid}>"}<{if $item[index] != $cpdepcount}>,<{/if}>
						<{/if}>
						<{/foreach}>
					]
	<{/if}>
	},
	{code:"Phone Ticket", url:"javascript:void(0);", "format":{"itemoff":[21,0], "leveloff":[5,179], "arrow":themepath+"icon_rightarrowblue.gif", "oarrow":themepath+"icon_rightarrowblue.gif", "arrsize":[10,10], "image":themepath+"menu_ticketphone.gif", "oimage":themepath+"menu_ticketphone.gif", "imgsize":[20,22]}<{if $cpdepcount >= 0}>,
					sub: [
						{"itemoff":[21,0]},
						<{foreach key=key value=item from=$cpdepartments}>
						<{if $item[departmentmodule] == "tickets"}>
						{code:"<{$item[title]}>", "format":{"image":themepath+"menu_folderblue.gif", "oimage":themepath+"menu_folderblue.gif", "style":<{if $item[index] == 1}>SUBPOPUPTOP<{else}>SUBPOPUP<{/if}>, "imgsize":[20,22]}, url:"index.php?_m=tickets&_a=newticket&type=phone&departmentid=<{$item[departmentid]}>&userid=<{$userid}>"}<{if $item[index] != $cpdepcount}>,<{/if}>
						<{/if}>
						<{/foreach}>
					]
	<{/if}>
	}
];
var MENU_USEARCHTICKET =
[
	{"popup":1, "popupoff":[0,0], "pos":[0,0], "zindex":50, "size":[22,180], "itemoff":[20,0], "leveloff":[2,179], "delay":1500, "style":VSTYLE, dynamic: true, https_fix_blank_doc:themepath+'blank.html'},
	<{if $nousermenu != true}>{code:"<{$language[byuser]}>", "format":{"style":VSTYLEBORDER, "itemoff":[0,0], "image":themepath+"menu_users.gif", "oimage":themepath+"menu_users.gif", "imgsize":[20,22], "arrow":themepath+"icon_rightarrowblue.gif", "oarrow":themepath+"icon_rightarrowblue.gif", "arrsize":[10,10]}, url:"index.php?_m=tickets&_a=search&userid=<{$userid}>",
					sub: [
						{"itemoff":[21,0]},
						<{foreach key=key value=item from=$cpstatus}>
						{code:"<{$item[title]}>", "format":{"image":themepath+"menu_yellowdot.gif", "oimage":themepath+"menu_yellowdot.gif", "style":<{if $item[index] == 1}>SUBPOPUPTOP<{else}>SUBPOPUP<{/if}>, "imgsize":[20,22]}, url:"index.php?_m=tickets&_a=search&userid=<{$userid}>&ticketstatusid=<{$item[ticketstatusid]}>"}<{if $item[index] != $cpstatuscount}>,<{/if}>
						<{/foreach}>
					]
	},<{/if}>
	{code:"<{$language[byusergroup]}>", "format":{"image":themepath+"menu_usergroup.gif", "oimage":themepath+"menu_usergroup.gif", "imgsize":[20,22], "arrow":themepath+"icon_rightarrowblue.gif", "oarrow":themepath+"icon_rightarrowblue.gif", "arrsize":[10,10], "arrow":themepath+"icon_rightarrowblue.gif", "oarrow":themepath+"icon_rightarrowblue.gif", "arrsize":[10,10]<{if $nousermenu == true}>, "style":VSTYLEBORDER<{/if}>}, url:"index.php?_m=tickets&_a=search&usergroupid=<{$usergroupid}>",
					sub: [
						{"itemoff":[21,0]},
						<{foreach key=key value=item from=$cpstatus}>
						{code:"<{$item[title]}>", "format":{"image":themepath+"menu_yellowdot.gif", "oimage":themepath+"menu_yellowdot.gif", "style":<{if $item[index] == 1}>SUBPOPUPTOP<{else}>SUBPOPUP<{/if}>, "imgsize":[20,22]}, url:"index.php?_m=tickets&_a=search&usergroupid=<{$usergroupid}>&ticketstatusid=<{$item[ticketstatusid]}>"}<{if $item[index] != $cpstatuscount}>,<{/if}>
						<{/foreach}>
					]
	},
];
var MENU_UMARKAS =
[
	{"popup":1, "popupoff":[0,0], "pos":[0,0], "zindex":50, "size":[22,180], "itemoff":[20,0], "leveloff":[10,59], "delay":1500, "style":VSTYLE, dynamic: true, https_fix_blank_doc:themepath+'blank.html'},
	{code:"<{$language[validated]}>", "format":{"style":VSTYLEBORDER, "itemoff":[0,0], "image":themepath+"menu_user.gif", "oimage":themepath+"menu_user.gif", "imgsize":[20,22]}, url:"index.php?_m=core&_a=edituser&userid=<{$userid}>&markas=validated"},
	{code:"<{$language[validationpending]}>", "format":{"image":themepath+"menu_validationpending.gif", "oimage":themepath+"menu_validationpending.gif", "imgsize":[20,22]}, url:"index.php?_m=core&_a=edituser&userid=<{$userid}>&markas=validationpending"},
];
var MENU_UOPTIONS =
[
	{"popup":1, "popupoff":[0,0], "pos":[0,0], "zindex":50, "size":[22,200], "itemoff":[20,0], "leveloff":[10,59], "delay":1500, "style":VSTYLE, dynamic: true, https_fix_blank_doc:themepath+'blank.html'},
	{code:"<{if $user[enabled]==1}><{$language[resendregemail]}><{else}><{$language[resendverimail]}><{/if}>", "format":{"style":VSTYLEBORDER, "itemoff":[0,0], "image":themepath+"menu_repliedmessages.gif", "oimage":themepath+"menu_repliedmessages.gif", "imgsize":[20,22]}, url:"index.php?_m=core&_a=edituser&userid=<{$userid}>&do=sendveriemail"}
];
var tuserticket = new COOLjsMenuPRO("tuserticket", MENU_CREATEUSERTICKET);
tuserticket.initTop();
tuserticket.init();
var tusearchticket = new COOLjsMenuPRO("tusearchticket", MENU_USEARCHTICKET);
tusearchticket.initTop();
tusearchticket.init();
var tumarkas = new COOLjsMenuPRO("tumarkas", MENU_UMARKAS);
tumarkas.initTop();
tumarkas.init();
var tuoptions = new COOLjsMenuPRO("tuoptions", MENU_UOPTIONS);
tuoptions.initTop();
tuoptions.init();
<{/if}>

</script>
<{/if}>
  <div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
<{if $session[iswinapp] != "1"}>
  <tr>
    <td>
	<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td rowspan="2" width="30%" align="left" valign="middle"><a href="index.php?_m=core&_a=dashboard"><img src="<{$themepath}><{$product}>.gif" border="0"></a></td>
    <td align="right" valign="top"><span class="smalltext"><{if $staffirs == 1}><input type="textbox" name="staffirs" id="staffirs" class="staffcpirs" autocomplete="off" /><{/if}></span>&nbsp;</td>
  </tr>
  <tr>
    <td align="right" valign="bottom"><span class="smalltext"><font color="#333333"><{$language[loggedinas]}><{$staffname}> | <a href="<{$swiftpath}>index.php" title="<{$language[clientarea]}>" target="_blank"><{$language[clientarea]}></a><{if $area eq "admin"}> | <a href="<{$swiftpath}>staff/index.php" title="<{$language[staffcp]}>" target="_blank"><{$language[staffcp]}></a><{elseif $area eq "staff"}> | <a href="<{$swiftpath}>admin/index.php" title="<{$language[admincp]}>" target="_blank"><{$language[admincp]}></a><{/if}></font> | <a href="<{if $area eq "admin"}><{$swiftpath}>admin/index.php?_ca=logout<{else}><{$swiftpath}>staff/index.php?_ca=logout<{/if}>" id="blue" title="<{$language[logout]}>"><strong><{$language[logout]}></strong></a>&nbsp; </span></td>
  </tr>
</table></td>
  </tr>
  <tr height="4">
    <td><img src="<{$themepath}>space.gif" width="1" height="4"></td>
  </tr>
  <tr height="1">
    <td bgcolor="#C6C3C6"><img src="<{$themepath}>space.gif" width="1" height="1"></td>
  </tr>
  <tr height="4">
    <td bgcolor="#F0F0F0"><img src="<{$themepath}>space.gif" width="1" height="4"></td>
  </tr>
  <{/if}>
  <tr>
    <td>
<script language="Javascript">
<{if $session[iswinapp] == "1"}>
var swmenubg1 = "menuwappbg";
var swmenubg2 = "menusectionwinapp";
<{else}>
var swmenubg1 = "menudefbg";
var swmenubg2 = "menusectiondefault";
<{/if}>
var swtabmenutype = "<{if $cpmenu eq "hover"}>onMouseOver<{else}>onClick<{/if}>";
var swtabmenu = new Array(); var swtabmenucolspan = '<{$menucolspan}>'; var swtabselmenu = '<{$selectedmenu}>'; var swtabselmenuclass = '<{$selectedmenuclass}>';
swtabmenu = [<{foreach key=key value=item from=$menu}>['<{$key}>', '<{$item[1]}>', '<{$item[3]}>', '<{$item[0]}>'],<{/foreach}>];
buildTopTabMenu();
</script>
	</td>
  </tr>
 
  <tr height="1">
    <td bgcolor="#C6C3C6" colspan="6" id="popupRef"><img src="<{$themepath}>space.gif" width="1" height="1"></td>
  </tr>
  <script language="Javascript">
switchTab(<{$selectedmenu}>, <{$selectedmenuclass}>);
</script>